package com.woniuxy.ssm.controller;


import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.Controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;


/**
 * @author linke
 * @version 1.0
 * @className: RoleController
 * @description: 角色控制器
 * @date 2021/11/17 15:32
 */


public class RoleController implements Controller {


    @Override
    public ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response) throws Exception {
        ModelAndView modelAndView = new ModelAndView();
        //设置返回对象
        modelAndView.addObject("msg","第一个ssm整合项目的controller");
        //设置视图对象
        modelAndView.setViewName("index.jsp");
        //


        return modelAndView;
    }
}
